package com.ruoyi.wb.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * banner 图片对象 wb_banner
 *
 * @author ruoyi
 * @date 2024-10-14
 */
@ApiModel(value = "WbBanner", description = "banner 图片实体")
public class WbBanner extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 图片 */
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片")
    private String img;

    /** 是否展示（1 是，2 否） */
    @Excel(name = "是否展示", readConverterExp = "1=是，2 否")
    @ApiModelProperty(value = "是否展示（1 是，2 否）")
    private Long isShow;

    /** 跳转链接 */
    @Excel(name = "跳转链接")
    @ApiModelProperty(value = "跳转链接")
    private String url;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty(value = "排序")
    private Long sort;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg() {
        return img;
    }

    public void setIsShow(Long isShow) {
        this.isShow = isShow;
    }

    public Long getIsShow() {
        return isShow;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("img", getImg())
                .append("isShow", getIsShow())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("url", getUrl())
                .append("sort", getSort())
                .toString();
    }
}